#include "TDBase.h"

StageMap::StageMap(void)
{
}

int StageMap::Size() const
{
	return (int)_bricks.size();
}

const MapBrick& StageMap::operator[](int idx) const
{
	assert (idx >=0 && idx<	(int)_bricks.size());

	return _bricks[idx];
}

void StageMap::Clear() 
{ 
	_bricks.clear(); 
}

int StageMap::Append(const MapBrick& brick)
{
	_bricks.push_back(brick);

	return _bricks.size() -1;
}
